package com.hnyc.shop.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hnyc.shop.mapper.ShopShopeeMapper;
import com.hnyc.shop.domain.ShopShopee;
import com.hnyc.shop.service.IShopShopeeService;

/**
 * shopService业务层处理
 * 
 * @author zero
 * @date 2023-03-11
 */
@Service
public class ShopShopeeServiceImpl implements IShopShopeeService 
{
    @Autowired
    private ShopShopeeMapper shopShopeeMapper;

    /**
     * 查询shop
     * 
     * @param id shop主键
     * @return shop
     */
    @Override
    public ShopShopee selectShopShopeeById(Long id)
    {
        return shopShopeeMapper.selectShopShopeeById(id);
    }

    /**
     * 查询shop列表
     * 
     * @param shopShopee shop
     * @return shop
     */
    @Override
    public List<ShopShopee> selectShopShopeeList(ShopShopee shopShopee)
    {
        return shopShopeeMapper.selectShopShopeeList(shopShopee);
    }

    /**
     * 新增shop
     * 
     * @param shopShopee shop
     * @return 结果
     */
    @Override
    public int insertShopShopee(ShopShopee shopShopee)
    {
        return shopShopeeMapper.insertShopShopee(shopShopee);
    }

    /**
     * 修改shop
     * 
     * @param shopShopee shop
     * @return 结果
     */
    @Override
    public int updateShopShopee(ShopShopee shopShopee)
    {
        return shopShopeeMapper.updateShopShopee(shopShopee);
    }

    /**
     * 批量删除shop
     * 
     * @param ids 需要删除的shop主键
     * @return 结果
     */
    @Override
    public int deleteShopShopeeByIds(Long[] ids)
    {
        return shopShopeeMapper.deleteShopShopeeByIds(ids);
    }

    /**
     * 删除shop信息
     * 
     * @param id shop主键
     * @return 结果
     */
    @Override
    public int deleteShopShopeeById(Long id)
    {
        return shopShopeeMapper.deleteShopShopeeById(id);
    }
}
